package com.hu.bgp.client.localevent;

import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.event.shared.GwtEvent.Type;
import com.hu.bgp.client.place.Place;

public class RequestPlaceChange extends GwtEvent<RequestPlaceChangeHandler>
{
	public static Type<RequestPlaceChangeHandler> TYPE = new Type<RequestPlaceChangeHandler>();
	private Place place;
	
	public RequestPlaceChange(Place place)
	{
		this.place = place;
	}
	@Override
	protected void dispatch(RequestPlaceChangeHandler handler) {
		handler.handlePlaceRequest(place);
	}

	@Override
	public Type<RequestPlaceChangeHandler> getAssociatedType() {
		// TODO Auto-generated method stub
		return TYPE;
	}

}
